package com.example.jnidemo;

import android.util.Log;

import com.example.jnidemo.bean.Student;

import java.util.ArrayList;
import java.util.List;

public class JniTest {
    static {
        System.loadLibrary("JniTest");
    }

    public native String jniHelloWorld();

    public native void getStudents(List<Student> list);

    public native int getStringFormc(int x, int y);

    public static int add(int x,int y){
        return x + y;
    }

    public void callNullMethod(){
        Log.e("TAG","C中调用java的void返回值，空参数方法");
    }

    public String callStringMethod(String str){
        return str+"->调用成功";
    }
}
